//
//  MineFavoriteTableCell.m
//  AroundTheWorld
//
//  Created by dllo on 16/6/6.
//  Copyright © 2016年 IfelseGo an. All rights reserved.
//

#import "MineFavoriteTableCell.h"

@implementation MineFavoriteTableCell
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self show];
        
    }
    return self;
}

- (void)show
{

}

- (void)setMyMlodel:(DiscountListModel *)myMlodel
{
    _myMlodel = myMlodel;
    self.titlLable.text = _myMlodel.title;
    
    //字符串分割
    NSRegularExpression *re = [NSRegularExpression regularExpressionWithPattern:@"[a-zA-Z.<,>,/]" options:0 error:NULL];
    NSString *string = _myMlodel.price;
    NSString *pr= [re stringByReplacingMatchesInString:string options:0 range:NSMakeRange(0, [string length]) withTemplate:@""];
    self.PriceLabel.text = pr;
    
    [self.photoImageV sd_setImageWithURL:[NSURL URLWithString:_myMlodel.photo] placeholderImage:nil];
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
